<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Expires" content="Tue, 24 Apr 1979 00:00:01 GMT"/>
        <meta http-equiv="Content-type" content="text/html;charset=utf-8"/>
        <link rel="shortcut icon" href="../images/favicon.ico" />
        <script type="text/javascript">
            var OB_smartClientSkinLocation = 'web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/smartclient/';
        </script>
        <script type="text/javascript" src="../../../org.openbravo.client.kernel/OBCLKER_Kernel/StaticResources">
        </script>
        <script type="text/javascript" src="grid-example.js">
        </script>
        <title>Openbravo Test Grid</title>
    </head>
    <body>
        <script type="text/javascript">
            var selectionLayout = isc.OBTestSelectionLayout.create({
            
              // set the action handler providing the data 
              // and executing the actions
              actionHandler: 'org.openbravo.client.application.example.GridExampleActionHandler',
              
              buttonProperties: {
                // TODO: use OB.I18N.getLabel 
                title: 'Click me!'
              },
              gridProperties: {
              
                // The fields to display
                // in production the field title needs to use translated labels
                // see the client kernel developers manual 
                fields: [{
                  name: 'name',
                  width: 100,
                  title: 'Name',
                  type: 'text'
                }, {
                  name: 'windowCount',
                  title: "Number of Windows",
                  width: 100,
                  type: 'integer',
                  canFilter: false
                }]
              }
            });
            
            // and show the grid, note that autoDraw is false as a default
            // so you need to explicitly call draw
            selectionLayout.draw();
        </script>
    </body>
</html>
